﻿@model ForumGroupModel
@using Nop.Services.Forums;
@using Nop.Services.Seo;
@using Nop.Web.Models.Boards;
<div class="forum-group">
    <table class="groups">
        <tr class="group-header">
            <td class="forum-name" colspan="4">
                @Html.RouteLink(Model.Name, "ForumGroupSlug", new { id = Model.Id, slug = Model.SeName })
            </td>
        </tr>
        @foreach (var forum in Model.Forums)
        {
            <tr class="forum">
                <td class="image">
                    <div />
                </td>
                <td class="forum-name">
                    <div class="forum-title">
                        @Html.RouteLink(forum.Name, "ForumSlug", new { id = forum.Id, slug = forum.SeName })
                    </div>
                    <div class="forum-description">@forum.Description
                    </div>
                </td>
                <td class="topics">
                    @T("Forum.Topics"): @forum.NumTopics <br/>
                    @T("Forum.Posts"): @forum.NumPosts
                </td>
                <td class="last-post">
                    @T("Forum.LatestPost"): @Html.Action("LastPost", new { forumPostId = forum.LastPostId, showTopic = true })
                </td>
            </tr>            
        }
    </table>
</div>
